package com.google.gwt.sample.dynatablerf.shared;

import com.google.gwt.user.client.Window;
import com.google.web.bindery.requestfactory.shared.ServerFailure;

public class GrifoTransportInterceptor implements IGrifoTransportInterceptor {

	@Override
	public void onServerFailure(ServerFailure serverFailure) {
		if (serverFailure.getMessage().equals(
				GrifoSharedConstants.TIMEOUT_EXCEPTION_CODE)) {
			Window.Location.reload();
		}
	}

}
